package com.cmii.sjw.department.control.jsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cmii.sjw.department.control.jsc.model.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author jfh
 * @Date 2025-04-08 周二 11:16
 * @Version 1.0
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {
    /**
     * 根据用户ID查询角色ID列表
     * @param userId 用户ID
     * @return 角色ID列表
     */
    List<Long> selectRoleIdsByUserId(@Param("userId") Long userId);
}
